import request from '@/utils/request'

export function getTags(params) {
  return request({
    url: '/admin/tags',
    method: 'get',
    params
  })
}

export function updateTag(params) {
  return request({
    url: '/admin/tags',
    method: 'put',
    data: params
  })
}

export function createTag(params) {
  return request({
    url: '/admin/tags',
    method: 'post',
    data: params
  })
}

export function deleteTag(params) {
  return request({
    url: '/admin/tags',
    method: 'delete',
    data: params
  })
}

export function batchDeleteTag(params) {
  return request({
    url: '/admin/tags/all',
    method: 'delete',
    data: params
  })
}

